package unit3;

public class GoodDogTest {
    public static void main(String[] args) {
        GoodDog dog1 = new GoodDog();
//        dog1.size = -10;
        dog1.setSize(-10);
        dog1.bark();
        System.out.println("Dog1 size is " + dog1.getSize());
    }

    static void t() {
        try {
            GoodDog dog1 = new GoodDog();
//        dog1.size = -10;
            dog1.setSize(-10);
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
        } catch (RuntimeException e) {

        } catch (Exception e) {

        }
    }
}
